var _n68;
var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var $2WeChatConstant = require("WeChatConstant");
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var def_WeChatTime = _n68 = /* */function (_cc$Component81) {
  babel_inherits(n, _cc$Component81);
  var _super99 = babel_createSuper(n);
  function n() {
    var _this234;
    babel_classCallCheck(this, n);
    _this234 = _super99.apply(this, arguments);
    _this234._eventManager = cc.internal.eventManager;
    return _this234;
  }
  babel_createClass(n, [{
    key: "onLoad",
    value: function onLoad() {
      cc.systemEvent.on(cc.Node.EventType.TOUCH_START, function () {
        console.log("===");
      }, this);
      this.schedule(function () {
        _n68.videoTime++;
        _n68.videoTime;
        $2WeChatConstant.default.noOperation;
      }, 1);
    }
  }, {
    key: "start",
    value: function start() {
      var e = cc.EventListener;
      this._touchListener = e.create({
        event: e.TOUCH_ONE_BY_ONE,
        swallowTouches: false,
        owner: this.node,
        mask: null,
        onTouchBegan: this.onTouchStart,
        onTouchMoved: this.onTouchMoved,
        onTouchEnded: this.onTouchEnded,
        onTouchCancelled: this.onTouchCancelled
      });
      this._eventManager.addListener(this._touchListener, this.node);
    }
  }, {
    key: "onTouchStart",
    value: function onTouchStart(e, t) {
      _n68.videoTime = 0;
      return true;
    }
  }, {
    key: "onTouchMoved",
    value: function onTouchMoved(e, t) {}
  }, {
    key: "onTouchEnded",
    value: function onTouchEnded(e, t) {}
  }, {
    key: "onTouchCancelled",
    value: function onTouchCancelled(e, t) {}
  }, {
    key: "onDestroy",
    value: function onDestroy() {
      this._eventManager.removeListener(this._touchListener, this.node);
    }
  }]);
  return n;
}(cc.Component);
def_WeChatTime.videoTime = 0;
def_WeChatTime = _n68 = cc__decorate([ccp_ccclass], def_WeChatTime);
exports.default = def_WeChatTime;